home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
326-350
/
disk_339
/
pcq
/
include
/
timerutils.i
< prev
next >
Wrap
Text File
|
1992-05-06
|
955b
|
33 lines
{
TimerUtils.i
This file declares CreateTimer, WaitTimer, and DeleteTimer.
They allow you to use the timer.device with relatively little
overhead. Note that, unlike the examples from the ROM Kernel
Manual, these routines use the VBlank unit. Therefore they
require much less overhead, but you should not use these routines
for times of less than half a second.
The source for these routines is in Runtime/Extras, and the
object code is in PCQ.lib
}
{$I "Include/Ports.i"}
{$I "Include/TimerDevice.i"}
Function CreateTimer : TimerRequestPtr;
External;
Function SetTimer(WhichTimer : TimerRequestPtr;
Seconds, Microseconds : Integer) : MsgPortPtr;
External;
Procedure WaitTimer(WhichTimer : TimerRequestPtr;
Seconds, Microseconds : Integer);
External;
Procedure GetSysTime(WhichTimer : TimerRequestPtr; VAR TV : TimeVal);
External;
Procedure DeleteTimer(WhichTimer : TimerRequestPtr);
External;